package com.kgc.scd.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @program: com.kgc.scd.service
 * @author: HarryXzy
 * @create: 2022-06-16 10:06
 * @description:
 **/
@FeignClient(value = "blmall-server-xzy-8101")
public interface IndexSearchService {

    @PostMapping("/indexSearch")
    Map<String, Object> indexSearch(@RequestParam("userId") String userId,
                                    @RequestParam("searchKey")String searchKey,
                                    @RequestParam("pageNo")Integer pageNo,
                                    @RequestParam("pageSize")Integer pageSize,
                                    @RequestParam("orderByPrice")String orderByPriceDesc);
}
